﻿#ifndef RECIPELOADER_H
#define RECIPELOADER_H
#include <QSettings>
#include "panellocator.h"
/// 用来将Recipe 文件中的数据加载到 PanelLocator
class RecipeLoader
{
public:
    RecipeLoader();

    /**
     * @brief loadRecipe_Left 加载左边 Panel 的 Recipe
     * @param recipeIni
     * @param locator
     * @return
     */
    bool loadRecipe_Left(const QSettings & settings, const cv::Mat &image, PanelLocator & locator);
    bool loadRecipe_Left(QString path, QString recipeName, PanelLocator & locator);
    /**
     * @brief loadRecipe_Right 加载右边 Panel 的 Recipe
     * @param recipeIni
     * @param locator
     * @return
     */
    bool loadRecipe_Right(const QSettings & settings, const cv::Mat &image, PanelLocator & locator);
    bool loadRecipe_Right(QString path, QString recipeName, PanelLocator & locator);
};

#endif // RECIPELOADER_H
